﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="userinfo.aspx.cs" Inherits="userinfo" %>

<script runat="server">

    protected void Page_Load(object sender, EventArgs e)
    {

    }
</script>


<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <title>我的首页</title>
    <style type="text/css">
        .auto-style10 {
            margin-left: 0px;
        }
        .auto-style11 {
            margin-right: 0px;
        }
    </style>
    </asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
         <div id="left">
             <asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False" CellPadding="4" DataKeyNames="id" DataSourceID="SqlDataSource2" ForeColor="#333333" GridLines="None" Height="50px" Width="395px" >
                 <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                 <CommandRowStyle BackColor="#E2DED6" Font-Bold="True" />
                 <EditRowStyle BackColor="#999999" />
                 <FieldHeaderStyle BackColor="#E9ECF1" Font-Bold="True" />
                 <Fields>
                     <asp:BoundField DataField="id" HeaderText="id" InsertVisible="False" ReadOnly="True" SortExpression="id" />
                     <asp:BoundField DataField="name" HeaderText="姓名" SortExpression="name" />
                     <asp:BoundField DataField="idcar" HeaderText="身份证号" SortExpression="idcar" />
                     <asp:BoundField DataField="userLogin" HeaderText="账号" SortExpression="userLogin" />
                     <asp:BoundField DataField="sex" HeaderText="性别" SortExpression="sex" />
                     <asp:BoundField DataField="email" HeaderText="Email" SortExpression="email" />
                     <asp:BoundField DataField="registTime" HeaderText="注册时间" SortExpression="registTime" />
                     <asp:BoundField DataField="address" HeaderText="住址" SortExpression="address" />
                     <asp:BoundField DataField="birthday" HeaderText="生日" SortExpression="birthday" />
                     <asp:BoundField DataField="telephone" HeaderText="电话号码" SortExpression="telephone" />
                     <asp:BoundField DataField="homeUrl" HeaderText="个人网站" SortExpression="homeUrl" />
                     <asp:BoundField DataField="userInfo" HeaderText="个人介绍" SortExpression="userInfo" />
                     <asp:BoundField DataField="status" HeaderText="权限" SortExpression="status" />
                 </Fields>
                 <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                 <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                 <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                 <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
             </asp:DetailsView>
             <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:crmConnectionString %>" SelectCommand="SELECT * FROM [user] WHERE ([name] = @name)">
                 <SelectParameters>
                     <asp:SessionParameter Name="name" SessionField="user_name" Type="String" />
                 </SelectParameters>
             </asp:SqlDataSource>
    </div>
   <div id="right" class="auto-style10">

       <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="id" DataSourceID="SqlDataSource1" CellPadding="4" CssClass="auto-style11" ForeColor="#333333" GridLines="None" Height="240px" Width="1079px">
           <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
           <Columns>
               <asp:BoundField DataField="id" HeaderText="id" InsertVisible="False" ReadOnly="True" SortExpression="id" />
               <asp:BoundField DataField="fly_name" HeaderText="航班号" SortExpression="fly_name" />
               <asp:BoundField DataField="type" HeaderText="机型" SortExpression="type" />
               <asp:BoundField DataField="takeoff_time" HeaderText="起飞时间" SortExpression="takeoff_time" />
               <asp:BoundField DataField="land_time" HeaderText="降落时间" SortExpression="land_time" />
               <asp:BoundField DataField="start_place" HeaderText="始发地" SortExpression="start_place" />
               <asp:BoundField DataField="end_place" HeaderText="目的地" SortExpression="end_place" />
               <asp:BoundField DataField="price" HeaderText="单价" SortExpression="price" />
               <asp:BoundField DataField="name" HeaderText="姓名" SortExpression="name" />
               <asp:BoundField DataField="idcard" HeaderText="身份证号" SortExpression="idcard" />
               <asp:BoundField DataField="paystatus" HeaderText="支付状态" SortExpression="paystatus" />
           </Columns>
           <EditRowStyle BackColor="#999999" />
           <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
           <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
           <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
           <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
           <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
           <SortedAscendingCellStyle BackColor="#E9E7E2" />
           <SortedAscendingHeaderStyle BackColor="#506C8C" />
           <SortedDescendingCellStyle BackColor="#FFFDF8" />
           <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
       </asp:GridView>
       <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:crmConnectionString %>" SelectCommand="SELECT * FROM [order] WHERE ([name] = @name)">
           <SelectParameters>
               <asp:SessionParameter Name="name" SessionField="user_name" Type="String" />
           </SelectParameters>
       </asp:SqlDataSource>

    </div>
     </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>

